package com.study.rocket.order;

import java.util.ArrayList;
import java.util.List;

/**
 * @author mjy
 * @date 2021/12/10
 * @description
 */
public class OrderStep {

    private Long orderId;

    private String desc;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "OrderStep{" +
                "orderId=" + orderId +
                ", desc='" + desc + '\'' +
                '}';
    }

    //1039创建，付款，推送，完成
    public static List<OrderStep> bulidOrders() {
        List<OrderStep> orderSteps = new ArrayList<>();
        OrderStep orderStep1 = new OrderStep();
        orderStep1.setOrderId(1039L);
        orderStep1.setDesc("创建");
        orderSteps.add(orderStep1);

        OrderStep orderStep1L = new OrderStep();
        orderStep1L.setOrderId(1039L);
        orderStep1L.setDesc("付款");
        orderSteps.add(orderStep1L);
        OrderStep orderStep1LL = new OrderStep();
        orderStep1LL.setOrderId(1039L);
        orderStep1LL.setDesc("推送");
        orderSteps.add(orderStep1LL);
        OrderStep orderStep1LLL = new OrderStep();
        orderStep1LLL.setOrderId(1039L);
        orderStep1LLL.setDesc("完成");
        orderSteps.add(orderStep1LLL);

        OrderStep orderStep2 = new OrderStep();
        orderStep2.setOrderId(1065L);
        orderStep2.setDesc("创建");
        orderSteps.add(orderStep2);
        OrderStep orderStep3 = new OrderStep();
        orderStep3.setOrderId(7235L);
        orderStep3.setDesc("创建");
        orderSteps.add(orderStep3);
        return orderSteps;
    }
}
